cmake_minimum_required(VERSION 3.0)

project(draw_tra)

find_package(Sophus REQUIRED)
include_directories(${Sophus_INCLUDE_DIRS})

# find_library(Pangolin REQUIRED)
# include_directories(${Pangolin_INCLUDE_DIRS})

find_library(FMT REQUIRED)
include_directories(${FMT_INCLUDE_DIRS})

include_directories("/usr/local/include/Eigen")

aux_source_directory(./ SOURCE_DIR)

add_executable(${PROJECT_NAME} ${SOURCE_DIR})

target_link_libraries(${PROJECT_NAME} ${Sophus_LIBRARIES} ${FMT_LIBRARIES} fmt)
target_link_libraries(${PROJECT_NAME} GL)
target_link_libraries(${PROJECT_NAME} GLEW)
target_link_libraries(${PROJECT_NAME} /usr/local/lib/libpangolin.so)
